﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using crm_library.Controls;
using crm_dal.Objects;
using crm_library.Extenstions;

namespace crm_web
{
	public partial class ContactInfo : System.Web.UI.Page
	{
        private ListingTableBuilder<Contact> Builder;

		protected void Page_Load(object sender, EventArgs e)
		{
            Builder = new ListingTableBuilder<Contact>(true, true, true, true, Contact.GetAll());

			Grid.Controls.AddRange(Builder.GenerateFilters().ToArray());
			Grid.Controls.Add(new Literal { Text = "<br />" });
			Grid.Controls.Add(new Literal { Text = "<br />" });
            Grid.Controls.Add(Builder);
		}



	}
}